package com.zhihuishu.micro.course.dto;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @author zhanglikun
 * @date 2015年10月28日 下午2:11:16
 */
public class LessonDto implements Serializable, TreenityDto {

    private static final long serialVersionUID = 1L;

    private Integer id; // 节ID

    private String name; // 节名称

    private Integer chapterId; // 节所属章ID

    private Long courseId; // 节所属课程ID

    private Integer rank; // 节序号

    private Long videoId; // 节关联视频ID

    private Long videoSec; // 视频时长

    private String videoUrl; // 视频URL

    private String videoImg; // 视频封面

    private String introduction; // 节简介

    private Integer haveChildren; // 是否有子节点(小节)

    private String speaker;// 主讲人

    private Integer hasKnowledegPoint;// 是否存在知识点 0 不存在 1 存在

    private Date updateTime;// 更新时间
    
    private Integer isDeleted;// 删除状态（0未删除，1已删除）


    public String getVideoUrl() {
        return videoUrl;
    }

    public void setVideoUrl(String videoUrl) {
        this.videoUrl = videoUrl;
    }

    public String getVideoImg() {
        return videoImg;
    }

    public void setVideoImg(String videoImg) {
        this.videoImg = videoImg;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getChapterId() {
        return chapterId;
    }

    public void setChapterId(Integer chapterId) {
        this.chapterId = chapterId;
    }

    public Integer getRank() {
        return rank;
    }

    public void setRank(Integer rank) {
        this.rank = rank;
    }

    public Long getVideoId() {
        return videoId;
    }

    public void setVideoId(Long videoId) {
        this.videoId = videoId;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }


    public Integer getHaveChildren() {
        return haveChildren;
    }

    public void setHaveChildren(Integer haveChildren) {
        this.haveChildren = haveChildren;
    }

    public Long getVideoSec() {
        return videoSec;
    }

    public void setVideoSec(Long videoSec) {
        this.videoSec = videoSec;
    }

    public Long getCourseId() {
        return courseId;
    }

    public void setCourseId(Long courseId) {
        this.courseId = courseId;
    }

    public String getSpeaker() {
        return speaker;
    }

    public void setSpeaker(String speaker) {
        this.speaker = speaker;
    }

    public Integer getHasKnowledegPoint() {
        return hasKnowledegPoint;
    }

    public void setHasKnowledegPoint(Integer hasKnowledegPoint) {
        this.hasKnowledegPoint = hasKnowledegPoint;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    @Override
    public Long getOneToManyId() {
        return getCourseId();
    }
}
